/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.fty.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeesite.common.entity.Page;
import com.jeesite.common.service.CrudService;
import com.jeesite.modules.fty.entity.FtyContractTest;
import com.jeesite.modules.fty.dao.FtyContractTestDao;

/**
 * fty_contract_testService
 * @author chensk
 * @version 2018-05-20
 */
@Service
@Transactional(readOnly=true)
public class FtyContractTestService extends CrudService<FtyContractTestDao, FtyContractTest> {
	
	/**
	 * 获取单条数据
	 * @param ftyContractTest
	 * @return
	 */
	@Override
	public FtyContractTest get(FtyContractTest ftyContractTest) {
		return super.get(ftyContractTest);
	}
	
	/**
	 * 查询分页数据
	 * @param page 分页对象
	 * @param ftyContractTest
	 * @return
	 */
	@Override
	public Page<FtyContractTest> findPage(Page<FtyContractTest> page, FtyContractTest ftyContractTest) {
		return super.findPage(page, ftyContractTest);
	}
	
	/**
	 * 保存数据（插入或更新）
	 * @param ftyContractTest
	 */
	@Override
	@Transactional(readOnly=false)
	public void save(FtyContractTest ftyContractTest) {
		super.save(ftyContractTest);
	}
	
	/**
	 * 更新状态
	 * @param ftyContractTest
	 */
	@Override
	@Transactional(readOnly=false)
	public void updateStatus(FtyContractTest ftyContractTest) {
		super.updateStatus(ftyContractTest);
	}
	
	/**
	 * 删除数据
	 * @param ftyContractTest
	 */
	@Override
	@Transactional(readOnly=false)
	public void delete(FtyContractTest ftyContractTest) {
		super.delete(ftyContractTest);
	}
	@Transactional(readOnly=false)
	public void saves(FtyContractTest ftyContractTest) {
		dao.saves(ftyContractTest);
	}
}